disable input box when in edit mode