better implementation for study tabs page