created a main activity