Set up code skeleton for GUI invocation