added category selection and fragment change