disables buttons when in readonly mode. Closes #285
Merge branch 'bugfix-285' into develop