Simplify code for starting GUI.