putting request result inside state