some api and view