Add cluster size constraint to template UI

Fixes #425