Edit buttons appear on teacher page for each homework.  This is done with a "setPageType" function on the "onload" function of the body.  for the main page, use 'setPageType("student")' and for the teacher page use 'setPageType("teacher")'.  This way you can make things in the javascript react differently based on the page.  We could have had 2 separate javascript files as well but the two pages share almost all of their functionality.