Make the Action bar My profile button work

I add condition code to the action bar code, so now the My profile
button in the action bar can open both grandma and children profile
different