change admin to use json and ajax, add crontab job, clean up admin a bit