changed html structure to work with angularjs