Added pure and a menu that switches pages