added analytics page and fixed nav tab selection.