begin separation of concerns for main activity