added functionality to switch pages during order process