selected tab & hide def