pricings controller refactor