discount dialog show/hide added