added page switch, buttons