Fixing tab selection in top navbar