Corrected the views template code