Added spirit boxes to addStats view and functionality to process them
Refactored some view code
Added a function to schedulerModel