refactor; todo-> open menu on event