Are you getting any console errors when this happens? Your code does look alright with the exception of
tab4root not having a page. Shouldn't effect the tabs but might want to assign that to a page just to make sure.
Also just noting that your posted code has a
selectedIndex="2" which should be the
Profile tab but in your video it appears to be starting on the
Users tab. Might just be a transcription error but if that is the case in your code it might be a bigger issue.