refactoring, prepare to work as included view, dynamic graph switch