added keyword event to function for deleting accounts