Added typhead event handlers.