add datepicker, add listener to response of media change