add readonly attribute for preferences fields