added more functionality

however the purchase form doesn't do anything when you fill it out yet