implement ajax and add white list