cleaned up views so more logic was in application controller (root view)