working on init purchase form