Change the way to open pages