fixed wrong re-direct for lends and changed the index view