add function for httprequest and add activity for ui