refractored quotes into the controller