adding close button functionality