@RequestMapping(value= "/getCourseList",method = RequestMethod.GET)  
	 public String getCourseList(@RequestParam(value = "theme", required = false, defaultValue = "0") int theme,
			 @RequestParam(value = "category", required = false, defaultValue = "0") int category,
			 @RequestParam(value = "subcategory", required = false, defaultValue = "0") int subcategory,
			 @RequestParam(value = "discipline", required = false, defaultValue = "") String discipline,
			 @RequestParam(value = "prereqs", required = false, defaultValue = "") String prereqs,
			 @RequestParam(value = "antireqs", required = false, defaultValue = "") String antireqs,
			 @RequestParam(value = "semester", required = false, defaultValue = "0") int semester,
			 Locale locale, Model model) {  
		 
		 List<Course> courseList;
		 
		 //Default Values
		 model.addAttribute("selectSemester", 0);
	     model.addAttribute("selectTheme",0);
	     model.addAttribute("selectCategory",0);
	     model.addAttribute("selectSubCategory",0);
	     model.addAttribute("selectDiscipline","");
	     model.addAttribute("selectPrerequisites","");
	     model.addAttribute("selectAntirequisites","");
		 
		 if (theme > 0 || category > 0 || subcategory > 0 || discipline != "" || prereqs != "" || antireqs != "" || semester > 0)
		 {
			 courseList = electiveHierarchyService.getCourseListFromHierarchy(theme,category,subcategory,discipline,prereqs,antireqs,semester);  
		     model.addAttribute("selectSemester", semester);
		     model.addAttribute("selectTheme",theme);
		     model.addAttribute("selectCategory",category);
		     model.addAttribute("selectSubCategory",subcategory);
		     model.addAttribute("selectDiscipline",discipline);
		     model.addAttribute("selectPrerequisites",prereqs);
		     model.addAttribute("selectAntirequisites",antireqs);
		 }
		 else 
		 {
			 courseList = courseService.getCourseList();  
		 }
	  
	  List<Semester> semesterList = semesterService.getActiveSemesterList(); 
	  List<SubCategory> subcategoryList = subcategoryService.getSubCategoriesForCategory(category);
	  List<Theme> themeList = themeService.getThemeList();
	  List<Category> categoryList = categoryService.getCategoryList();

	  model.addAttribute("subcategoryList",subcategoryList);
	  model.addAttribute("courseList",courseList);
	  model.addAttribute("themeList",themeList);
	  model.addAttribute("categoryList",categoryList);
	  model.addAttribute("semesterList",semesterList);

	  return "courseList";
	  
	 }