refactored quotes into the controller