rough draft of ajax for get_logs