Properly handle and trigger events