changes made for X button on active RDP