layout update and implement ReadOnly mode