main activity updated