got mouse detection working