refactored. templates and controllers now need to be in same package as the model object