Recfactored code, moved View and server folder and file into app folder