fixing up main activity