change the widget visibility when app will open