Revert "split the addGuiItem function"

This reverts commit 695a2774ee052f4e2b2a1e13e7ba39cb5c308151.