updates to endorsements controller to use Json to avoid the page reloading when a link is clicked