refactor html on index view