Changed Sample to show/hide icon properly