resource work

set up the resource model. now setting up the resource view.