Modified to monitor the URI instead of updating when the screen is turned on