used query event handling to settle firefox registration issue.