Alert code if the selected operation does not exist.  Fixed a mis-named attribute.
refactor so that the alert doesn't show up if an operation isn't chosen.