Updated view to fix the url issue