added support for editing text... still work in progress