UX improvements for Custom Metrics

The interface for creating custom metrics now better handles the case where the metric definition is somewhat complex. You now have a lot more space to write your definition which means the whole formula is always visible.

Custom metrics UX improvements