[#41394817] switch between edit mode and readonly mode