updated MainActivity