added closebutton, set click listener for close