Prepare UI for annotation (refactored to support multiple tabs).