How can I turn them off if there's another layout open in the case of clicking on a line in the list.