moves page to optional variable