made things faster. Data is now fetched after the view appeares.