private fun enterViewOnlyMode(): Unit
This is an internal function of code to execute to enter view-only mode