changed datepicker panel to take a SelectionMode input instead of a boolean, improving reusability