fixed params[:id] issue