Ajax request controller