Inject List of views

This PR implements what was proposed in issue #975.

Views are added to the list only if they are not null. It's to prevent developers from having to check if the view is null in loops. Tell me if you think this is not the correct behavior.