Revamped the class activity view. Improved code performance.