Transistor with independent gate structures