run server on click