fix/finish assignment, label, permission, and delete dialogs.
reformat code and optimize imports