Bugfix: Button state of Write was always off
Fixed layout selection.