Move draw/update panels from CodeEdit to PanelsManager