Watch the Week 8: Use of Triads and Melodic Leading online guitar lesson by Joe Pinnavaia from Guitar Soloing Essentials
Moving forward in your practice sessions is important to realize that slower practice will mean greater gains. Also getting the concepts into your head and hands will come from static chord vamps first before proceeding to key changes. You can use chord progressions that are diatonic and then you can see the effects that these concepts have.
The concept here is to listen to what you are playing and try to anticipate and resolve your lines. The best way is to improvise slowly and allow lots of space.