added clear, style and addButton to issue #308