added InputDevice_Edit;
some fixes;