scheduler.js modified for dropdown selection and datepicker