changed response from attribute to returned value. Added history stack to request object