Broke out the completion function to update the results in the sidebar to its own function.