Refactor index view page with haml