added delete button with flash message for succesful deletion