Smart error partial view