worked on onClick function for header oAuth