refactor the app by show fragment and host fragment.