Create a custom button for VMs that when pushed will rename the VM in RHEV

Create a custom button for VMs that when pushed will rename the VM in RHEV. What are the necessary steps to do the following.