Massive refactor for front end resources