Refactoring edit and delete options for contact form