Added the countdown and redirected to sleep page