updated UI to use purecss, fixed quite a few html javascript issues, clean up