move the add threshold and add custom graph point defintion inside the m...

...enu item handlers so it can work on the component page