Detaching menu before adding / removing items for performance.
declaring constants with single var.