Modify paths in controller