updating scripts with onclicks