when after my thesis finish , i known that one of   important tasks has done and i have enough time to visit Expo in Shanghai .
When my thesis finished , I knew that one of my important tasks was done and I had enough time to visit the Expo in Shanghai .