cleaned up code in courses_index view. With Ajax for form editting, don't need the embedded PHP for the Edit form.