Implement hide/show of dialog