update permissions and views