added plot window and other script functions