finishing touches, fixed some bugs with visits