add staff edit function.