Added inline functionality for datepicker