Minor fixes in Milestone controller
Minor refactors in the milestone stats