Committing part of MainAcitivty