Improve save_and_open_page hanlding