Added eventlistener for visibilityChange to detect and to refresh the browser window when user opens/tabs to the browser window of the app, in order to show latest data