fix the position of close buttons