Show spinner when loading pages and prevent orientation changes when dialogs are open