# Tabs with a consistent contactId

**URL:** <https://forum.ionicframework.com/t/tabs-with-a-consistent-contactid/26517>\
**Category:** ionic-v1\
**Created:** [June 17, 2015, 3:09am UTC](https://forum.ionicframework.com/t/tabs-with-a-consistent-contactid/26517 "2015-06-17T03:09:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbezold](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kbezold](https://forum.ionicframework.com/u/kbezold)\
**Post date:** [June 17, 2015, 3:09am UTC](https://forum.ionicframework.com/t/tabs-with-a-consistent-contactid/26517/1 "2015-06-17T03:09:45Z")

</div>

HELP!!!

I’m trying to create an ionic app with tabs that use a consistent contact id.

For example, from the main view, I have links to contact 1 and contact 2. These will open up a view with tabs for both home and menu specific to that user.

Following is a plunker to show the issue with my current implementation:

> **[Plunker](http://plnkr.co/edit/mnQQ4K)**
>
> Created on Plnkr: Helping developers build the web.

When I click the first contact, the home and menu tabs are correct.  
When I go back to main and then click the second contact, the home tab is correct, but the menu tab is for the first user selected.

Shouldn’t the `$stateParams.contactId` be used to set the `$scope.contactId`?  
The controller only runs the first time through which is likely the source of my problem, but how to correct?

Thanks
