removed category.id = id from controller