Add a setting to determine if the user wants to change the static script information when his selected index changes. For example if you are looking at a creature's scripts including the actionlists and you select an actionlist entry, you might want to keep the static script information (source type and entryorguid) to the normal entry (so not the actionlist).