changed edit button js handler for contact profile page