Simplifying panel collapse stuff