change to launch script on toggleButton press
fixed some mem leaks found with cppcheck