Back button bug fixed

5 hours of trial and error worked