adding more functionality to view