updates to view depending on perms