restore selection after running command
restore selection after running command