implement some utilities in GUI to copy stack or method name