added display API
added display API and test