modified view and rails file to allow index on names