adding code to refresh homepage when no user activity