updating ui and removing stuff