corrected errors on View page