add eventlistener to autostart