Livelihoods and regulations, regulatory guidelines for urban upgrading