menu gesture optimization