first pass at refactoring, commented out
added before actions to listscontroller