wallet model and controller