Work with @mjc0042 to fix #51. Datepicker visible when not necessary