Added common func delete_entity in base(ui) module