updating main activity