fixing category ui bug