Fix features

- Add the logout option.
- Add the option to toggle the api.