Moved model to top level view