created directives to switch views for managing labels and editing accounts, as well as controller functions