now submit button closes the tabs, but the fixes for calendar date is
needed