Refactored quotes into controller