started a major code rewrite, using angularjs and bootstrap