reorganized angular files, refactored partials code, started coding update function