update main_activity