File correctly saves itself to server
some refactoring and view are not working as need((