How can i show/hide tabs by conditions?