init the main activity