implement on_draw and draw_text method