added block for close button