prepare some code to post comment from client