Modified MainActivity java to make it a launchable activity