fixed ajax for logs