little refactorings to ensure better encapsulation
time picker can be removed by clicking anywhere