changing format from html to haml