Added handlers to input box items