completed refactoring of ui code to styleguide and fixed url driven parsing. Closes #109, #102, and #101.