Refactored html into ERBs.