got rid of a bunch of redundant code

Found 2 bugs: 1) when you click on one of the manage accounts links the
content in the tab panes gets shifted to the right  2) course_page.php
doesn’t show content in any of the other tabs