Finishing xhr requests implementation