divide main activity