ticketsystem admin view and refactoring