refactored datepicker out of bootstrap ui