Refactored hoodpop_controller to handle syntax errors in compilation