add initial function of event manager