icon does not hide on page reload