find dnyamicly all boxes in a template