generalize changeProperty event and add ability to toggle readonly by clicking