prototype page switch is working