implemented controller for ways