added code to fetch data from server when start up