Rebuilt menu when a program is inserted or updated.