define the main activity