GUI: shell command refactoring