changes views to haml