updated the main activity