ui: Don't display pool list N times if N pools are set hidden in config.

Also, add some comments do #endif's.