small change in view, to automatically create api_token