ขณะที่, ในขณะที่
at the same time as something else is happening; while
ในขณะที่, แต่
in contrast or comparison to the fact that; whereas