Removed unused functions from form1.cs