moved bgtask into updatePlayerUI