added rotation controls and coordinate reset