edit mode works