added edit functionality of profile for staff