Refactored TA views
Refactored code and added comments
Refactored code
Refactored code