make sure mainThread is always on top