initialize app with main activity