create script for auto-updating event status