updates categories controller