moved super.onCreate(savedInstanceState) to the end of MainActivity#onCreate(Bundle) to properly restore the state of the views