fixed a bug where all categories was navigated to on click