Added logic for invoking new/copy/edit entity from list