Competing orders in cuprates