changed erb to haml for indexes