added credit and staff functionalities