Improve cron script
fix view