converted template to haml