Restructured erlang code and changed yang delete to button.