Inventory buttons

I have inventory made out of grid of buttons. And when i press inventory button it sets its highlighted color but when i press next button it highlighted too.
How can i make previous button to set its buttons style?