view resource to public/view