Store visible rows separately to list of patients

Addresses bugs reported in #97