secure ping api try
refactorings
api call on click