inserted text and event handlers for hash definition