share try catch and dialog added