close function compare and edit css