moved view to separate file, WORKING SOLUTION