Update to add listener

Added a listener to prevent continuous firing, re-minified.