Don't (un)expand command when clicking buttons.