Added custom close operation to show pbes again on close