main activity modified