Showing buttons based on a message received by arduino

Actually I made received as INT for this case as i wanted tri-state variable for this because I wanted nothing to be shown when i have not received ack for either ON or OFF.

So i had set initially received as 2.
So when it is 2 neither green or red symbols show up.
When i get ack_on, symbol for ON shows up, when I get ack_off, symbol for OFF shows up