added edit metrics routes