Added methods for UI buttons to C# code