reorg code home-ctrl