ajax for dynamic selection of units is almost done