Refactored: converted erb file to haml