Edit get request function