refactored index to haml