last action in is the primary action.  Once the primary action is dismissed, the next item in the queue becomes the primary action.
make sample is easy for testing.