fix ajax stuff