fix navbar icon on document click