try to get drawing function ajaxified