disable button and close window