view permission fixes