some code improvement in Ui.cs to switchValue() (only else branch was needed) and setCurrentTicket(), put all conditions in a list of bool and go through them with a loop