added the support for fav and share with trycatch