Loading the contents every time a new tab is open