Added simple support for enabling/disabling datepicker