Make commands enabled only when relevant