update mobbrMsg with close function and process api response in the right way