in main window functionality for discount button has been done.
Functionality for edit product button has been modified