a better way to set cells non-interactive

and a better time to determine read-only-ness
fixes #501