move detection to rootpage