implement an improved purchase button and form