Update autofocussing now we have default dates.
Fix bug with display of locked modals.