categories controller partly rewroten in new models api