updated card views to razor syntax