attach controls disabled and debug removed