buy square and hiding button working