Handle case where selectedCommands contains null entries
Show + and - buttons only for selected sequence