The main hall of a 135-year-old Buddhist temple in Shanghai has been moved 30m (100ft).