This will allow for easier handling of different views, as well as the embedding of dialogs in the future.