refactor views to haml