adding page switcher