organize html, add http service function