fix ajax, structure, alerts