Proactive and reactive strategies to handle surges in urban crowds