fixed button problems and buy error