small HAML refactoring
small HAML refactoring