updated MainActivity to handle incoming activity messages