Adjusted handling of pools to be dynamic

The form and POST processing can handle more than 3 pools dynamically scaling up to 20