Only run showSelection if one of the command successfully executed

Change-Id: I1192fcdca79c202559f99ccebc2f0ccbc8501f5c
Merge "Only run showSelection if one of the command successfully executed"