What cities can do to attract new residents without alienating locals