Added "UpdateGUIElements" function