Clean up spinning logic for documents view.