Connect logical output to input of the First transistor instead of signal generator...and Connect the blue node to mosfet Gate directly. The npn transistor is bc547 and the pnp is 2n3906...this circuit isn't tested practically.but it should work properly.please give it try and comment.