refactored some of the view params code to keep it DRY