change event log to visit message status table; add to log only if message is sent or skip; code refactoring