connect menu with traj