moved view to main