fix up some helpers and add a view partial