Added flash messages and define goal edit/delete