fixing when clicking the refresh icon (<i> element) it doesn't work correctly