added compass listner