auto-hide icon when there is nothing to show