added scripts to bars