Rondo form is sometimes combined with sonata form to make something which is called "sonata rondo form". In sonata rondo form the second tune is treated like the second subject in sonata form where it comes back in the main key the second time.