Visibility tracking of UI components with dynamic subscribe/unubscribe functionality