Close button on extension popup, add ajax to render the documents after saved successfully into db