Add ajax support