added and removed close buttons