merged XML location and profile init with main, updated popup class