fix ajax and alerts output
add todo for logs