Decoupling of GUI from scripting