made baseview and modular structure for oop functionality.