added close button and event for click. need to work on calling
ScriptView close function when this is clicked