add allocation controller
add allocation form
add allocations updating logic
Fix the page refresh data lost issue