baseapp add_view check if class is intantiated