tested and fixed Controls.cs