Refactored the real_time_panel_controller