Changing the code add eventAdmin