Update categories controller