edit and view opportunities

incomplete code for viewing/editing