fix misc bugs
add browser key in setting

change portal id to combination of latitude and longitude