using session for redirect to necessary tab