houseallocation function writen but not tested
debuging the manager page