using a controller to handle parameter in URL