Added change direction property to textbox