moved view instantiation