add auto event to topic functionality