added logentry model and ajax