add ensure visible and avoid reload file