refactor line breaks in index