edit manager and edit staff logic