handle can_delete and can_edit properly