refactored erb views