Mapping routes variables to controller