added event for editing box