Bug opal 2024

Completed the clean up of derived variable modal. 
Fixed the bug with the script tab not being hidden for regular non-derived variables.