Updated trace util to show toast