basic pie charts done, with logic
cleaned up extraneous models
refactored the views, moved the logic into appropriate models