removed unnecessary check
getCurrentPosition
check visibilitychange for debug
show map if connected