frontend view for purchase