added clear command to GUI