Converting the layouts to haml