Merge ecent functions in setVisib