ajax and video functionality added