blend function now working with the main program
destroy window after show it