converted shared templates to haml