Mass changes to view

changes made to: private variables and metrics generation