corrected view with url params passing