changes in MainActivity class.