functions for updating on event table edit