adding tokens and handlers to the frame