Optimize frontend-edit