Added renderAddItem callback for more flexibility