added visit_list function to main.php controller

looks bad, but functionality works. We'll need to align to figure out
this timestamp business