refactored view home
new js for buy_confirmation