Observable: save visibility state of function