Implements prototype of category controller