loading data from json file
added rerender method