changed index into haml after passing tests