moved from event handling to global variable in order to stop position and weather checking