added sanity check for events widget