fix stack overflow caused by Canvas widget
add backup routine. set every 5 minutes