I want to show a message before selecting another tab if Message result is \'NO\' then it should remain in the current tab if message result is YES then selected tab should