Conditionally display option to add theses/dissertation on community edit, refactor controller code.