Added error message and the view correction for the agreement details fetching