Smith agrees to deal with Browns