Added menu events to sample apps.