added gui on/off parameter