Refactor heroes view to include iteration over items