Refresh main view after adding new documents