Funcionality to Back Page and Forward page buttons