working edit panel