fixed some errors in view