Add to supported program list more directly.

Also fix bug where adding a program wouldn't refresh the list of
programs.