Implemented clearButtons method.