removes references to individual main_views