cleaning up the ticket view