add setting and add mainapp location info