I have solved the issue with the help of Registry.set(obj) in the onModuleLoad and Registry.get(obj) to retrieve the main object which has all of the contentpanel objects and once i retrieve the main object with the help of Registry, i used getItemByItemId("Id") to retrieve the contentpanel object and then used the hide and show functions on the same.

so the problem was not that you can not hide the panels - so it was more the problem that you dont have a reference to this panel?

This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.