Creating script calls for a toolbar button