fixed some bugs in the scrollable panel. Now stores the object type for easy retrieval