add to show dialog func