Changed the code so tapping the sleep page works