solve some on mainActivity's problem