change way of hide/show tabs