adding categories factory view and controler