converted to haml templates