I always set the tag of the panel:
feedPanel.tag = 1
or
feedPanel.tag = 2
Then use it later:
if(feedPanel.tag = 1) then
else if(feedPanel.tag = 2) then
end if
or if you need to store multiple objects in the tag, create a custom TYPE, and change the tag to your custom object. Then, grab the tag whenever you need it to check what it is.