modify main activity