fixing edit button crash, adding edit profile functionality