haml refactoring