Fix cost hiding to take removal of entity into account

Make sure cost column shown/hidden state gets updated when removing entities, too.