close the invitation panel once the button is pressed