hide tab list when unnecessary