adding disable functionality

adding the option to disable the date-picker