fixed no-parameter issue when refreshing; check params[:keyword] != nil && params[:keyword] !=