added a session flash to show a successful post
cleanup
fixed button
defined method