Add cluster size constraint to template UI #425