Datepicker implemented but not working