bin/gui.pl: rename function