added functionality to check box while edit