Added inner class- Controller within MainActivity