add context class to visit table
fix visit status
send visit status email only if date is present