aranged main_activity for readability, removed comments