Refactored staffdetail code
List is views all the time, refactored some code for global usage