added visibility prop to ui