Issue with state of Async table

Hi All,
I have created a table with multiple images to show based on different conditions. Async table is bound to service output. I am changing visibility of the images by clicking on them(toggle between image1 and image2).
My issue is when i invoke the service again to refresh contents of the table. I am expecting table will display image1 that was initially displayed. But, table is displaying new image2.
When i navigate out of the page, and come back again to perform new search, table is populated with proper data.
Does state of Async table depend on the scope of managed bean?

Both image1 and image2 are wrapped in inline hideable panel. I am toggling visibility of hideable panels using javascript.
Can anyone let me know solution for this issue?

Thanks and Regards,

Fixed this issue by clearing all rows of table before refresh.