Fixed imports and main window minimize

Imports and fixed main frame window minimize when closing add customer
frame.