Optimized the dormitory edit page.