reloads the page when detecting resource changes