minor changes, deleted obsolsete code, the buy button only shows when a visitor is logged in