make non safe request modal work
wire up query dialog view
sort out embedded resource view