adding stats and updating ui bits