refactoring, bugfixing and a new feature

It's now possible to automatically change the status of the ticket using the timer