various fixes relating to panels to support new QuickLook features