Controlling the Dynamics and Stabilization of the Altitude and Attitude of An Underactuated Tri-rotor UAV