Code written to open a panel