modify the main activity