Move daytime picker dialog to global scope so it is now shared among
different pages.