modified table to view visits