using UI-Bootstrap tabs directive to fix tab switching bug.