Make buttons look nice in the h1.
Add the edit post link to the $post object.
Drop the update_post() method
Add the edit post link to the button.
If the user is logged in, add a button to take then to the admin editor.