Update main activity