refactor, load data and add mineBuyButton