private fun exitViewOnlyMode(): Unit
This is an internal function handling code to execute when exiting view-only mode and entering edit mode