Category controller updated to manage URLs better