fix en/disable input functions