changing library departments list to HTML list