add frame delegate handler