change title form to legend form