refactored the view, switched to simplified require syntax