Moved PageShow class to separate file.