refine all base activity and main activity