0.7.2: automatically switch stack index depending on selected element