remove location permission
update ui
add test code