disable buttons when read only is enabled