Made some changes to the show dialog action.