example of using datepicker inside a modal, added IMAP proof of concept