refactored controller class because inputs were being read twice after restart