removed name and id tags from elements in settings page since they are not needed anymore with angular; fixed an error in debug mode by moving $l inside an if statement so it's only accessed if it exists; added UIController to tool page so that closing and opening of divs is done through angular