replaced UI with djd919's version w/dummy buttons.
Rearranged code