fix close button in active layers