show error template instead of redirect