it has nothing to do with your I-140. you are Resident for tax purpose in 2007, regardless of your GC application