changed contorller to find params