frontend: refactored editing (not done, yet)