Tidying up the code some more

fixed a minor bag of the carousel that wouldn't allow the user to choose the last tab
fixed a bag that my previous commit had that resulted in broken code when opening a category