Organize to separe ajax and normal requests