moved some code around, mostly

also the item tally method got added. and the rows autosize now, i
guess?