Change messages to messageBar
Added button behavior connected to layer.isEditable()
Code clean up
Add suport for translation