chnaged the api call and success messages