split up main activity and main fragment