Added rotate tool functionality