change some functions for cursor get it's pointer;  print_text() to draw() with refine