update getTop & visibleTest