finished the staff functionality