Set page tab correctly