added edit in place to populate best visit time and avg spent timeg