added inline trascript functionality