refactoring for study view tab page