Added option for redirecting detail view