working Back & Forward buttons