add http status code for response
refactor admin and add http_code