commit main activity