added new function updateAllUIElements