refactored controllers and models from lib/ moved user views