updated ad call code in the sidebar