1. A device, comprising: a touch screen display for displaying a screen of applications; and a controller, wherein when a first gesture is performed on the touch screen display in a state where (i) one of the applications is executed in a foreground and (ii) the other applications are executed in a background and are invisible on the touch screen display, the controller is configured to cause the one of the applications to perform an operation according to the first gesture, when a second gesture is performed on the touch screen display in the state, the controller is configured to switch the one of the applications in the foreground to the background and one of the other applications in the background to the foreground, and every time the second gesture is performed in the state, the controller is configured to switch the one of the other applications in the background to the foreground one by one in an order reverse to an order in which each of the other applications was executed in the foreground.