adding rank to course edit page and fixing location search