fixed issue with popup blocking, now let's deal with the cron job