changed datepicker layout and behaviour