Added show and hide functions to dialog buttons.