update MainActivity