remove debug code + disable terminal on contextmenu event