Added function to handle one time events. Currently using this for the tools panel on the instances page.

fixed issue in Firefox where text would not show up in text inputs.