before option panel clean up