Added parsing of views
Extracted view initialization into a separate file