I have 2 buttons which they activate/deactivate divs, button next activate next div and button prev deactivate current div. function update gets called in each click, im try