makes primary toolbar optional.
fixes a bug that halted event execution.