add context to set_panel_imp_on_click