worked on API key input