updating close button