added cancel button to create metric