An electronic device comprising: a foldable display configured to be folded into at least two screens including a first screen and a second screen; and at least one processor operatively coupled to the display and configured to: identify an operation state of the display, control the display to display a first user interface, UI (1003, 1005), comprising application icons for executing applications, based on that the identified operation state is a folded state, control the display to display a second UI comprising the application icons and widgets associated with the application icons, wherein each of the widgets are displayed at a portion adjacent to the corresponding application icon, based on that the identified operation state is an unfolded state, and based on detecting a state change from the folded state to the unfolded state, increase a size of an empty space between the corresponding application icon and another application icon and display the each of the widget in the empty space, based on detecting the state change from the unfolded state to the folded state, allocate the application icons to the first screen and allocate the widgets to the second screen, wherein the size of the empty space between the application icon and the another application icon is decreased based on detecting the state change from the unfolded state to the folded state, wherein the displaying of the first UI comprises displaying the application icons on the first screen and the corresponding widgets on the second screen, wherein in the folded state, the at least two screens are exposed to the outside. a foldable display configured to be folded into at least two screens including a first screen and a second screen; and at least one processor operatively coupled to the display and configured to: identify an operation state of the display, control the display to display a first user interface, UI (1003, 1005), comprising application icons for executing applications, based on that the identified operation state is a folded state, control the display to display a second UI comprising the application icons and widgets associated with the application icons, wherein each of the widgets are displayed at a portion adjacent to the corresponding application icon, based on that the identified operation state is an unfolded state, and based on detecting a state change from the folded state to the unfolded state, increase a size of an empty space between the corresponding application icon and another application icon and display the each of the widget in the empty space, based on detecting the state change from the unfolded state to the folded state, allocate the application icons to the first screen and allocate the widgets to the second screen, wherein the size of the empty space between the application icon and the another application icon is decreased based on detecting the state change from the unfolded state to the folded state, wherein the displaying of the first UI comprises displaying the application icons on the first screen and the corresponding widgets on the second screen, wherein in the folded state, the at least two screens are exposed to the outside. identify an operation state of the display, control the display to display a first user interface, UI (1003, 1005), comprising application icons for executing applications, based on that the identified operation state is a folded state, control the display to display a second UI comprising the application icons and widgets associated with the application icons, wherein each of the widgets are displayed at a portion adjacent to the corresponding application icon, based on that the identified operation state is an unfolded state, and based on detecting a state change from the folded state to the unfolded state, increase a size of an empty space between the corresponding application icon and another application icon and display the each of the widget in the empty space, based on detecting the state change from the unfolded state to the folded state, allocate the application icons to the first screen and allocate the widgets to the second screen, wherein the size of the empty space between the application icon and the another application icon is decreased based on detecting the state change from the unfolded state to the folded state, wherein the displaying of the first UI comprises displaying the application icons on the first screen and the corresponding widgets on the second screen, wherein in the folded state, the at least two screens are exposed to the outside.