correcting error in view syntax