private fun doSearch(): Unit
This function is used to initialize the relevant view elements when state is STATE_SEARCH