add a button to close the option panel