Fixed #248: Implemented support for templates
Oops fixing the overflow issue with the dots of BoxItems broke item selection.