Moved view stuff from engine