saving if has canvas before drawing the dialog

Signed-off-by: filipe garcia <filipe.c.garcia@gmail.com>