refactoring adsComponentView.ts uncompleted