updating ui in main scene