renames mainController to docsController, cleans up html