fixes based on @kpham13's code

still need to get detail view working…