Added ability to hide datePicker