updated main activity