Using eventlisteners instead of defered objects