Refactored code.  Combined Compete and Train to one view