fixed time format
smarter handling of dates with slots
fix for not showing the datepicker widget on every click
a bit of code reorganization