add e2e spec for seperating into multi views.
fix the url wrongly accessed by e2e test.
remove view rendering json to multipart view.
improve clearness of code.