checks for resizing and disabled panels