create update function in staffs