fixed issues with views, cruds, etc