added DialogController, refactored StateController to display logout dialog when deep linking back to no hash