add isCollapsed() method, lots of doubts