ensure script panel clears it's content before updating with a new script