Corrected errors in view