Refactor/ajax testing ui

Cleaned up controller as well as demo interface.