Fixed refocussingissue on hidden-made visible panels
several intermediate changes