How to balance the multiple roles of public spaces