refactoring for rename opening page