add seed function and mileage UI