Fixed the refreshing of new data

Finally think I found a good solution for refreshing a new page when
the tab first loads