Added preferencemanager to hide icon