created ajax controller