clean some code
add getlocation button
add get location function