Defined controller as service