Modified application to load data from json file using a button