puoi postare la funzione addBoxItem o altre funzioni necessarie?
quanto hai postato non e' sufficiente x ottenere risposta