return self through dialog handler function