We all know that in a SharePoint page users can edit it by clicking "Site Actions->Edit Page". Currently the client I am working with wants to display a custom "Edit" button directly on the article page if the user has 'contributor' permission, when editing the page the button should show and do "Save & Close". For this specific requirement I did custom buttons in the page layout and made it work. Please see the code snippet below: Enjoy:-)