add eventlistener for admin environment