refactor quotes into the controller