fix tab & cagegory function