more refactoring: actions, defaults, and views
formatting