Fixed bugs on delete, edit, view and create assignment