added dropdown-opened and dropdown-closed events to typeahead.