improve menu configuration, make sure that it does not show commands that are not applicable to splits