working on controller, update path still to be finished.