Fixed some performance issues with angularjs template, also a styling issue for mobile