Fixed a bug in rename function, added panel to callback object