added refreshing text when icon is clicked