added cancel button to editor box
changed text-showing mechanism