moving time mode to a seperate function
fix time mode,  wait for grid overlay to load before accepting events