Minor code formatting and imports

some minor code organising was done and improved imports.
added some dynamic content to the View class.