adding parameters to controller