Views and Layouts

Added functionality to the Views and Layouts.
Work in progress