Fix various UX problems in the notebook form.