back button added and data is now stored in an external JSON file