if sidebar, run script