updated ajax and media