building page updating only when active