refine resource view and form