Close menu on name change