Updated data Service to only update information when the page is active.